import Vue from 'vue'
import Vuex from 'vuex'
import {http} from '../network/index'
import {home} from "./home/home";
import logon from "./logon/logon";
import course from './course/course'
import user from "./user/user";
import courses from "./details/courses";
import teacher from "./details/teacher"
import collect from "./user/collect"
import attention from "./user/attention"
import searchlist from "./search/search"
import oto from "./study/oto"
import topic from "./topic/topic";


Vue.use(Vuex)

Vuex.Store.prototype.$http = http;

export default new Vuex.Store({
    state: {},
    mutations: {},
    actions: {},
    modules: {
        home,
        logon,
        course,
        user,
        courses,
        teacher,
        collect,
        attention,
        searchlist,
        oto,
        topic
    }
})